<script setup lang="ts">
import { ICON_DIR } from "../../src/sde";

const props = withDefaults(defineProps<{ id: number; size?: number }>(), {
  size: 20,
});
</script>

<template>
  <img class="mr-0.5 object-contain" :height="size" :width="size" :src="`file:///${ICON_DIR}/${id}.png`" alt="图标" />
</template>

<style scoped lang="scss"></style>
